UI Input Text
Command Prototype
UiDetection.InputText(objUiElement,sText,bEmptyField,iInterval,iTimeout,optionArgs)
Command Description
Inputs a string to a given element after conducting UI Detection
Parameter Description
- Required Parameter
- objUiElement--The UI element to search. If a string is passed, it is used as a feature string to search for the specified UIElement to click. If an UiElement is passed, the corresponding UI element is clicked
- sText--The text to input to the detected element
- bEmptyField--Whether to clear the input element before writing
- iInterval--The time to take to input the text (ms)
- iTimeout--The amount of time (in milliseconds) to wait for the activity to run before the SelectorNotFoundException throws an error. The default value is 10000 milliseconds (10 seconds)
- Optional Parameter
- bContinueOnError--Specify whether automation should continue if the activity throws an error. This field only supports Boolean values (True, False). The default is False
- iDelayAfter--Added delay (in milliseconds) after executing the activity. Defaults to 300
- iDelayBefore--Added delay (in milliseconds) before executing the activity. Defaults to 200
- sKeyModifiers--You can use the following options for keyboard keys pressed at the same time when triggering mouse actions: Alt, Ctrl, Shift, Win.
- bSetForeground--Whether to activate the target window before executing
- sSimulate--How to simulate the operation {default:background operation, simulate:simulated operation, message:system message}